package com.itheima.tlias84.Service;

import com.itheima.tlias84.Po.InsertDeptParam;
import com.itheima.tlias84.Util.ResultUtil;
import com.itheima.tlias84.dto.SelectAllDeptDTO;
import com.itheima.tlias84.entity.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface DeptService {
    List<SelectAllDeptDTO>selectAll();

    int insertDept(InsertDeptParam param);

    int deleteById(Integer id);

    SelectAllDeptDTO selectDeptById(Integer id);

    ResultUtil updateDeptById(Dept dept);

    int batchDelete(@Param("ids") List<Integer> ids);

    int batchInsert(@Param("depts") List<String> depts);
}
